<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>星期</title>
    <script>
	var myDate = new Date;
    var InFo ="";
    var  i = myDate.getDay();
    switch(i)
    {
        case 0:
                InFo = "天"
                break;
        case 1:
                InFo = "一"
                break;
        case 2:
                InFo = "二"
                break;
        case 3:
                InFo = "三"
                break;
        case 4:
                InFo = "四"
                break;
        case 5:
                InFo = "五"
                break;
        case 6:
                InFo = "六"
                break;
    }
	document.write("今天是星期"+ InFo);
    </script>
    </head>
<body>
</body>
</html>